<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="sorter/style.css" />
<title>Lista de participantes</title>
</head>
<body>

<?=$_REQUEST['idevento'] ?> 
<a href="index.php?action=editar">agegar nuevo</a>
<form id="form1" name="form1" method="post" action="">
  <table width="200" border="0" id="tabla" class="sortable">
   <thead>
    <tr>
      <th scope="col" >Id</th>
      <th scope="col">Nombre</th>
      <th scope="col"> Borrar</th>
    </tr>
   </thead>
   <tbody>    
    <?php 
	if(isset($persona)){
	foreach($persona as $key => $v){
	?>
    <tr>
      <td><?=$v->id?>
      </td>
      <td><?=$v->nombre?></td>
<td><a href="index.php?action=eliminar&id=<?=$v->id?>&id_evento=<?=$_REQUEST['idevento'] ?> ">Borrar </a></td>
    </tr>
    <?php }}?>
    </tbody>
  </table>
</form>
		
</body>
</html>